public class Diamond3 {

  public static void main (String[] args) {

    int n = Integer.parseInt(args[0]);
    String name = args[1];

    int maxStars, lines;
    maxStars = lines = 2 * n - 1;

    for (int rowNumber = 1; rowNumber <= lines; rowNumber++) {

      if (rowNumber == n) {

        System.out.println(name);

      } else {

        int spacesNumber = Math.abs(n - rowNumber);
        printStringNTimes(spacesNumber, " ");

        int starsNumber = maxStars - Math.abs(2 *(rowNumber - n));
        printStringNTimes(starsNumber, "*");

        System.out.println();

      }

    }

  }

  private static void printStringNTimes(int n, String string) {
    for (int i = 1; i <= n; i++) {
      System.out.print(string);
    }
  }

}
